<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        <input type="text" name="username" value="" placeholder="请填写用户名">
        <br>
        <input type="password" name="password" value="" placeholder="请填写用户登录密码">
        <br>
        <button id="login">登录</button>
    </div>
</body>

{include file="public/footer" /}

<script>
    $("#login").click(function () {
        let username = $("input[name='username']").val();
        let password = $("input[name='password']").val();
        ws.send(JSON.stringify({username:username,password:password,type:"login"}));
    });
</script>
</html>